#include<iostream>
#include<vector>

using namespace std;

/*The le of input data will contain pairs of lines, with each line containing no more than 80 characters. The
nal line of the input le contains a # as its rst character. Each input line contains a polynomial written
without spaces and without any explicit exponentiation operator. Exponents are positive non-zero
unsigned integers. Coe cients are also integers, but may be negative. Both exponents and coe cients
are less than or equal to 100 in magnitude. Each term contains at most one factor in x and one in y.
Output
Your program must multiply each pair of polynomials in the input, and print each product on a pair
of lines, the rst line containing all the exponents, suitably positioned with respect to the rest of the
information, which is in the line below.
The following rules control the output format:
1. Terms in the output line must be sorted in decreasing order of powers of x and, for a given power
of x, in increasing order of powers of y.
2. Like terms must be combined into a single term. For example, 40x2y 3 ? 40x2y 3 is replaced by
2x2y 3 .
3. Terms with a zero coe cient must not be displayed.
4. Coe cients of 1 are omitted, except for the case of a constant term of 1.
5. Exponents of 1 are omitted.
6. Factors of x0 and y 0 are omitted.
7. Binary pluses and minuses (that is the pluses and minuses connecting terms in the output) have a
single blank column both before and after.
8. If the coe cient of the rst term is negative, it is preceded by a unary minus in the rst column,
with no intervening blank column. Otherwise, the coe cient itself begins in the rst output
column.
ACM Contest Problems Archive
University of Valladolid (SPAIN)
9. The output can be assumed to t into a single line of at most 80 charactes in length.
10. There should be no blank lines printed between each pair of output lines.
11. The pair of lines that contain a product should be the same length|trailing blanks should appear
after the last non
*/

int main()
{
  
}